package com.example.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigInteger;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 养老金待遇申领记录实体类
 * @author system
 */
@ApiModel(value = "养老金待遇申领业务对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("benefit_claim")
public class BenefitClaim {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "申领ID")
    private BigInteger id; // 主键
    
    @ApiModelProperty(value = "员工地址")
    private String employeeAddress; // 员工地址
    
    @ApiModelProperty(value = "申领类型")
    private Integer claimType; // 申领类型 1-正常退休 2-提前退休 3-特殊工种退休
    
    @ApiModelProperty(value = "申领状态")
    private Integer status; // 状态 0-待审核 1-审核通过 2-审核拒绝 3-已发放
    
    @ApiModelProperty(value = "申领金额")
    private BigDecimal claimAmount; // 申领金额
    
    @ApiModelProperty(value = "申领日期")
    private LocalDate claimDate; // 申领日期
    
    @ApiModelProperty(value = "退休日期")
    private LocalDate retirementDate; // 退休日期
    
    @ApiModelProperty(value = "缴费年限")
    private Integer paymentYears; // 缴费年限
    
    @ApiModelProperty(value = "个人账户余额")
    private BigDecimal personalBalance; // 个人账户余额
    
    @ApiModelProperty(value = "发放方式")
    private Integer paymentMethod; // 发放方式 1-月度发放 2-一次性发放
    
    @ApiModelProperty(value = "银行账号")
    private String bankAccount; // 银行账号
    
    @ApiModelProperty(value = "银行名称")
    private String bankName; // 银行名称
    
    @ApiModelProperty(value = "审核人")
    private String auditor; // 审核人
    
    @ApiModelProperty(value = "审核时间")
    private LocalDateTime auditTime; // 审核时间
    
    @ApiModelProperty(value = "审核意见")
    private String auditOpinion; // 审核意见
    
    @ApiModelProperty(value = "备注")
    private String remark; // 备注
    
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime; // 创建时间
    
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime; // 更新时间
}